package com.supermarket.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.user.domain.User;
import com.supermarket.user.domain.dto.UserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    List<User> list(@Param("userDto") UserDto userDto);

    /**
     * 批量更新用户订单冻结状态
     * @param userIds
     */
    void updateFreezeOrder(@Param("userIds") String[] userIds);

    /**
     * 批量更新用户优惠券冻结状态
     * @param userIds
     */
    void updateFreezeCoupon(@Param("userIds") String[] userIds);

    /**
     * 批量更新用户评论冻结状态
     * @param userIds
     */
    void updateFreezeComment(@Param("userIds") String[] userIds);

}
